package com.sctvcloud.beichuan.ui.dialog;

import android.app.Dialog;
import android.os.Bundle;
import android.view.View;

import com.ruihang.generalibrary.ui.dialog.BaseDialogFragment;
import com.ruihang.generalibrary.ui.widget.CustomFontTextView;
import com.sctvcloud.beichuan.R;

public class ConfirmDialogFragment extends BaseDialogFragment implements View.OnClickListener {
    private CustomFontTextView content_show, sure_cv;
    private int position = 0;

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    @Override
    protected int getContentRes() {
        return R.layout.com_dia_fragment;
    }

    @Override
    protected void initViews(Dialog dialog, Bundle savedInstanceState) {
        content_show = (CustomFontTextView) dialog.findViewById(R.id.content_show);
        sure_cv = (CustomFontTextView) dialog.findViewById(R.id.dia_show_sure);
        sure_cv.setOnClickListener(this);
        content_show.setText(R.string.rebllion_publish_failure);
    }

    @Override
    public void onClick(View v) {
        if (v == sure_cv) {
            dismissAllowingStateLoss();
        }
    }


}

